//import { createRouter, createWebHistory } from 'vue-router';
import AddFlight from '@/views/air-flight/addFlight.vue';


export const Layout = () => import("@/layout/index.vue");

const airFlightRoutes  = [
  {
    path : '/flight',
    component: Layout,
    meta: { hidden: true },
    children: [
      {
        path: "addFlight",
        name: 'AddFlight',
        component: AddFlight,
        props: route => ({ planeId: route.query.planeId }),  // 使用 query 参数传递 planeId
        meta: {
          title:'设置航班信息',
          hidden: true 
        }
      },
    ],
  },



 

];



export default airFlightRoutes;
